package o;

import android.graphics.drawable.Drawable;
import android.widget.TextView;
import com.huawei.appgallery.foundation.ui.framework.widget.toolbar.ToolBarIcon.b;
import o.ewm.d;
import o.ewm.e;
import o.ewm.n;

public class dkr implements b {
    public void ˋ(TextView textView, ckp.b bVar) {
        int dimensionPixelSize = textView.getContext().getResources().getDimensionPixelSize(d.ʿॱ);
        Drawable drawable;
        switch (2.ˏ[bVar.ordinal()]) {
            case 1:
                drawable = textView.getContext().getResources().getDrawable(e.ߴ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(n.ʿ);
                return;
            case 2:
                drawable = textView.getContext().getResources().getDrawable(e.ـॱ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(n.ʽॱ);
                return;
            case 3:
                drawable = textView.getContext().getResources().getDrawable(e.ͺˏ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(n.ˈ);
                return;
            case 4:
                drawable = textView.getContext().getResources().getDrawable(e.ͺˏ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(n.ʾ);
                return;
            case 5:
                drawable = textView.getContext().getResources().getDrawable(e.ˏͺ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(n.ॱॱ);
                return;
            case 6:
                drawable = textView.getContext().getResources().getDrawable(e.ͺˏ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(n.ॱ);
                return;
            case 7:
                drawable = textView.getResources().getDrawable(e.ͺˏ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(n.ˎ);
                return;
            case 8:
                drawable = textView.getContext().getResources().getDrawable(e.ˑॱ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(n.ٴ);
                return;
            case 9:
                drawable = textView.getResources().getDrawable(e.ˑॱ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(n.ʼﾞ);
                return;
            case 10:
                drawable = ContentManager.getInstant().getContext().getResources().getDrawable(e.ͺˏ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(n.ʽʿ);
                return;
            case 11:
                drawable = ContentManager.getInstant().getContext().getResources().getDrawable(e.ˎͺ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(n.ॱˑ);
                return;
            case 12:
                drawable = ContentManager.getInstant().getContext().getResources().getDrawable(e.ˎͺ);
                drawable.setBounds(0, 0, dimensionPixelSize, dimensionPixelSize);
                textView.setCompoundDrawables(null, drawable, null, null);
                textView.setText(n.ˊᶫ);
                return;
            default:
                Logger.e("ToolBarIconStyleImpl", "unsupport button type");
                return;
        }
    }
}
